import React, {useState} from "react";
import FileUpLoader from "../../components/FileUploader/FileUpLoader";
import {ToastContainer} from "react-toastify";
import {Preview} from "../../components/Preview/Preview";


export default function ArticleList() {
    const [files,setFiles]=useState([]);
    const onSuccess=(saveFiles)=>{
        setFiles(saveFiles);
    }
    return (
        <div className={'App'}>
            <FileUpLoader onSuccess={onSuccess}/>
            <Preview files={files}/>
            <ToastContainer/>
        </div>
    )
}